home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- U_CAPI_REGISTER
- U_CAPI_RELEASE
- U_CAPI_PUT_MESSAGE
- U_CAPI_GET_MESSAGE
- U_CAPI_SET_SIGNAL
- U_CAPI_GET_MANUFACTURER
- U_CAPI_GET_VERSION
- U_CAPI_GET_SERIAL_NUMBER
- U_CAPI_GET_PROFILE
- U_CAPI_INSTALLED
- U_CAPI_REGISTER U_CAPI_REGISTER
-
- NAME
- U_CAPI_REGISTER -- Register an application with the CAPI
-
- SYNOPSIS
- result = U_CAPI_REGISTER( maxLogicalConnection, maxBDataBlocks,
- maxBDataLen, pApplId );
-
- unsigned U_CAPI_REGISTER( unsigned, unsigned,
- unsigned, unsigned short * );
-
- FUNCTION
- This is the operation the application uses to report its presence
- to the CAPI. By passing the four first parameters, the application
- describes its needs.
-
- INPUTS
- maxLogicalConnection - Maximum number of logical connections
- maxBDataBlocks - Number of data blocks available simultaneously
- maxBDataLen - Maximum size of a data block
- pApplId - Pointer to the location where CAPI should place
- the ID of the newly registered application.
- A valid ID will never be zero.
-
- RESULT
- 0 if successful, or parameter info class 0x10xx
-
- SEE ALSO
- U_CAPI_RELEASE()
-
- U_CAPI_RELEASE U_CAPI_RELEASE
-
- NAME
- U_CAPI_RELEASE -- Terminate access to the CAPI
-
- SYNOPSIS
- result = U_CAPI_RELEASE( applId );
-
- unsigned U_CAPI_RELEASE( unsigned short );
-
- FUNCTION
- The application uses this operation to log off from CAPI.
- CAPI will release all resources that have been allocated.
-
- INPUTS
- applId - Application ID as received from CAPI_REGISTER(),
- or zero for no action.
-
- RESULT
- 0 if successful, or parameter info class 0x11xx
-
- SEE ALSO
- U_CAPI_REGISTER()
-
- U_CAPI_PUT_MESSAGE U_CAPI_PUT_MESSAGE
-
- NAME
- U_CAPI_PUT_MESSAGE -- Send a message from the application to the CAPI
-
- SYNOPSIS
- result = U_CAPI_PUT_MESSAGE( applId, pCAPIMessage );
-
- unsigned U_CAPI_PUT_MESSAGE( unsigned short, CAPI_MESSAGE * );
-
- FUNCTION
- With this operation the application transfers a message to the CAPI.
- Under OS/2, the message memory area must not cross a 64 kByte
- boundary in the flat address space because the DLL may convert the
- passed flat pointer to a 16:16 bit segmented pointer.
-
- INPUTS
- applId - Application ID as received from U_CAPI_REGISTER()
- pCAPIMessage - Pointer to the message
-
- RESULT
- 0 if successful, or parameter info class 0x11xx
-
- SEE ALSO
- U_CAPI_GET_MESSAGE()
-
- U_CAPI_GET_MESSAGE U_CAPI_GET_MESSAGE
-
- NAME
- U_CAPI_GET_MESSAGE -- Get a message from the CAPI
-
- SYNOPSIS
- result = U_CAPI_GET_MESSAGE( applId, ppCAPIMessage );
-
- unsigned U_CAPI_GET_MESSAGE( unsigned short, CAPI_MESSAGE ** );
-
- FUNCTION
- With this operation the application retrieves a message from the CAPI.
- The application can only retrieve those messages intended for the
- stipulated application identification number. If there is no message
- waiting for retrieval, the function returns immediately with an
- error code.
-
- INPUTS
- applId - Application ID as received from U_CAPI_REGISTER()
- ppCAPIMessage - Pointer to the memory location where CAPI should
- place a pointer to the data of the retrieved message
-
- RESULT
- 0 if successful, or parameter info class 0x11xx
-
- SEE ALSO
- U_CAPI_PUT_MESSAGE()
-
- U_CAPI_SET_SIGNAL U_CAPI_SET_SIGNAL
-
- NAME
- U_CAPI_SET_SIGNAL -- Install a signalling mechanism
-
- SYNOPSIS
- success = U_CAPI_SET_SIGNAL( applId, callback, para );
-
- unsigned short U_CAPI_SET_SIGNAL( unsigned short, unsigned long,
- unsigned long );
-
- FUNCTION
- This operation is used by the application to install a mechanism
- which signals the application the availability of a message.
-
- In that case each time CAPI places a message in the application's
- message queue, the specified callback function is called.
-
- By issuing this function call with a callback value of 0 the
- signalling mechanism is deactivated.
-
- The called function must have the following format:
- void callback( unsigned short applID, unsigned long para );
-
- INPUTS
- applId - ID of Application posting the request
- callback - Pointer to the function to be called
- para - Parameter passed to callback function (application's use)
-
- RESULT
- success - 0 if OK, or parameter info class 11 upon failure.
-
- SEE ALSO
-
- U_CAPI_GET_MANUFACTURER U_CAPI_GET_MANUFACTURER
-
- NAME
- U_CAPI_GET_MANUFACTURER -- Get manufacturer ID of the CAPI driver
-
- SYNOPSIS
- U_CAPI_GET_MANUFACTURER( SzBuffer );
-
- void U_CAPI_GET_MANUFACTURER( char * );
-
- FUNCTION
- With this operatrion the application determines the manufacturer
- identification of the installed CAPI driver. SzBuffer on call is
- a pointer to a buffer of 64 bytes. CAPI copies the identification
- string, coded as a zero-terminated ASCII string, to this buffer.
-
- INPUTS
- SzBuffer - Pointer to a buffer of 64 bytes
-
- RESULT
- none
-
- SEE ALSO
- U_CAPI_GET_VERSION(), U_CAPI_GET_SERIAL_NUMBER()
-
- U_CAPI_GET_VERSION U_CAPI_GET_VERSION
-
- NAME
- U_CAPI_GET_VERSION -- Get CAPI version numbers
-
- SYNOPSIS
- result = U_CAPI_GET_VERSION( pVersionNumbers )
-
- void U_CAPI_GET_VERSION( unsigned long * );
-
- FUNCTION
- With this function the appplication determines the version of the
- CAPI as well as an internal version number.
-
- INPUTS
- pVersionNumbers - Pointer to an array of four U32s receiving
- the following four version numbers:
-
- 1st: CAPI major version number (currently 2)
- 2nd: CAPI minor version number (currently 0)
- 3rd: Manufacturer specific major version number
- 4th: Manufacturer specific minor version number
-
- RESULT
- none
-
- SEE ALSO
- U_CAPI_GET_MANUFACTURER(), U_CAPI_GET_SERIAL_NUMBER()
-
- U_CAPI_GET_SERIAL_NUMBER U_CAPI_GET_SERIAL_NUMBER
-
- NAME
- U_CAPI_GET_SERIAL_NUMBER -- Get the serial number of the CAPI
-
- SYNOPSIS
- result = U_CAPI_GET_SERIAL_NUMBER( SzBuffer );
-
- void U_CAPI_GET_SERIAL_NUMBER( char * );
-
- FUNCTION
- With this operation the application determines the (optional) serial
- number of the CAPI. SzBuffer on call is a pointer to a buffer of 8
- bytes. CAPI copies the serial number string to this buffer. The serial
- number, coded as a zero terminated ASCII string, represents a seven
- digit number after the function has returned.
-
- INPUTS
- SzBuffer - Pointer to a buffer of 8 bytes
-
- RESULT
- none
-
- SEE ALSO
- U_CAPI_GET_VERSION(), U_CAPI_GET_MANUFACTURER()
-
- U_CAPI_GET_PROFILE U_CAPI_GET_PROFILE
-
- NAME
- U_CAPI_GET_PROFILE -- Get the profile of a controller
-
- SYNOPSIS
- result = U_CAPI_GET_PROFILE( SzBuffer, CtrlNr );
-
- unsigned U_CAPI_GET_PROFILE( CAPI_PROFILE *, unsigned short );
-
- FUNCTION
- The application uses this function to get the capabilities from CAPI.
- SzBuffer on call is a pointer to a buffer of 64 bytes. In this buffer
- CAPI copies information about implemented features, number of
- controllers and supported protocols. CtrlNr contains the controller
- number (bit 0..6) for which this information is requested.
-
- INPUTS
- SzBuffer - Pointer to a buffer receiving the CAPI_PROFILE structure.
- CtrlNr - Number of controller. If 0, only the number of installed
- controllers is given to the application.
-
- RESULT
- 0 if successful, or parameter info class 0x11xx
-
- SEE ALSO
-
- U_CAPI_INSTALLED U_CAPI_INSTALLED
-
- NAME
- U_CAPI_INSTALLED -- Find out if a CAPI driver is installed
-
- SYNOPSIS
- result = U_CAPI_INSTALLED();
-
- unsigned U_CAPI_INSTALLED( void );
-
- FUNCTION
- The application can use this function to find out if the CAPI
- driver is installed.
-
- INPUTS
- none
-
- RESULT
- 0 if capi is installed, non-zero otherwise.
-
- SEE ALSO
-
-